package com.zbkj.common.model.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 客户端用户表
 * </p>
 *
 * @author 
 * @since 2024-07-05
 */
@Getter
@Setter
@TableName("pe_user")
@ApiModel(value = "User对象", description = "客户端用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("客户端用户ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("登录账号")
    private String account;

    @ApiModelProperty("密码")
    private String pwd;

    @ApiModelProperty("联系人")
    private String realName;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("状态 0有效，1 封禁")
    private Integer status;

    @ApiModelProperty("所属公司名称")
    private String companyName;

    @ApiModelProperty("部门名称")
    private String departmentName;

    @ApiModelProperty("是否首次登录 0 首次 1非首次")
    private Integer firstLogin;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("0:正常 1:已删除")
    private Integer deleteFlag;

    @ApiModelProperty("身份证号")
    private String idCard;

    @ApiModelProperty("实名认证状态 0 未认证 1已认证")
    private Integer authStatus;

    @ApiModelProperty("邀请码")
    private String inviteCode;
    @ApiModelProperty("邀请人ID")
    private Long inviterId;

    @ApiModelProperty("年卡ID")
    private Long cardId;
    @ApiModelProperty("年卡失效时间")
    private Date cardExpire;
    @ApiModelProperty("可用年卡字符数")
    private Long cardDataval;
    @ApiModelProperty("可用流量包字符数")
    private Long dataval;

    @ApiModelProperty("字段类型")
    private Integer filedType;

    /*@ApiModelProperty("时效类型 0 按日期开通 1 永久")
    private Integer validType;

    @ApiModelProperty("有效结束日期")
    private Date validToDate;*/

    @ApiModelProperty("试用包到期时间")
    private Date trialExpire;

}
